(function($){
	$(function(){
		var resizePage = (function () {
            $("body,.pop-page").height($(window).height());
            var ww = $(window).width(),
                wh = $("body").innerHeight(),
                popTopH = $(".pop-top").outerHeight(true),
                titleH = $(".ip-title").outerHeight(true),
                popFootH = $(".pop-foot").outerHeight(true),
                $ipBody = $(".ip_body");

            $ipBody.height(wh - popTopH - titleH - popFootH);
            return arguments.callee;
        })();

        $(window).resize(resizePage);
        //关闭弹出层
        $(".close-pop").on("click",function(e){
        	e.stopPropagation();
        	window.parent.$.popHide();
        })
        
        //选择分配的IP
        $(".ip_body")
        	.on("click",".ip-radio",function(e){
        		e.stopPropagation();
        		$(".set-ip-item").removeClass("active");
        		$(this).closest(".set-ip-item").addClass("active");
        	})
	})
})(jQuery)
